import request from '@/utils/request'

// 获取所有
export function getList(data) {
  return request({
    url: '/factor/list',
    method: 'get',
    params:data
  })
}

// 获取新增
export function getAdd(data) {
    return request({
      url: '/factor',
      method: 'post',
      data
    })
  }

// 修改
export function getUpdate(data) {
    return request({
      url: '/factor',
      method: 'put',
      data
    })
  }
// 详情
export function getFactorDes(id) {
  return request({
    url: '/factor/' + id,
    method: 'get',
  //   data
  })
}
// 删除
export function getFactorDet(id) {
    return request({
        url: `/factor/del/${id}`,
        method: 'delete',
    })
}

  // 查看考试题目
export function getSubject(id) {
  return request({
    url: '/factor/subject/list/' + id,
    method: 'get',
    // data
  })
}